package top.ninwoo.utils.util;

/**
 * @Author joliu
 * @Description 基于tc命令的限速接口
 * @Date　Create in 下午4:04 2019/10/30
 */
public interface TcUtils {

    boolean addQos(String containerId, String maxRate, String minRate);

    boolean delQos(String containerId);

    boolean addDelay(String containerId, String mode, int delay);

    boolean addDelay(String containerId, String mode, int delay, int randomDelay);

    boolean addDelay(String containerId, String mode, int delay, int randomDelay, int correlation);

    boolean addDelay(String containerId, String mode, int delay, int randomDelay, int correlation, int loss);

    boolean addDelay(String contianerId, String mode, int delay, int randomDelay, String policy);
}
